package com.mpsc.multi.source;

import com.codingapi.txlcn.tc.config.EnableDistributedTransaction;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.context.ApplicationContext;

@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
@MapperScan(value = "com.mpsc.multi.source.dao")
@EnableDistributedTransaction
@EnableEurekaClient
public class MultiSourceApplication {
    public static void main(String[] args) {
        ApplicationContext applicationContext = SpringApplication.run(MultiSourceApplication.class, args);
       // SpringContextUtil.setApplicationContext(applicationContext);
//        DataSourceConfig.injectionContainer();
    }


}
